home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / wtil21.zip / DEMO.BAT < prev    next >
DOS Batch File  |  1991-12-05  |  829b  |  33 lines

  1. @echo off
  2. rem DEMO.BAT - demonstrates WaitTil
  3. cls
  4. echo This batch file really doesn't do anything.  It's an example
  5. echo of how to execute timed backups.
  6. pause
  7. cls
  8. ECHO Please be sure that you have selected the correct backup
  9. echo tape, then insert the tape into the drive.
  10. echo  
  11. pause
  12. CLS
  13. rem Change the 20:00 in the next line to the actual time you want the
  14. rem backup to start
  15. WAITTIL 20:00 BACKUPS PENDING - DO NOT DISTURB /N
  16. if errorlevel 2 goto Error
  17. if errorlevel 1 goto Aborted
  18.         rem Backup starts here
  19.         cls
  20.         rem TAPE BACKUP C:\ /s
  21.         echo IF THIS WERE A REAL BACKUP, IT WOULD BE EXECUTING NOW
  22.         pause
  23.         goto End
  24. :Error
  25.         Echo A PROBLEM HAS OCCURRED!!
  26.         pause
  27.         goto End
  28. :Aborted
  29.         echo TERMINATED BY USER!
  30.         pause
  31. :End
  32.  
  33.